<?php
// comment out the following line to disable debug mode
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

$frameworkPath = 'yii2/framework/yii';

require($frameworkPath . '/Yii.php');
// Register Composer autoloader
@include($frameworkPath . '/vendor/autoload.php');

$appPath = dirname(__DIR__).'/app';
@include($appPath . '/vendors/HTMLPurifier/HTMLPurifier.auto.php');

$config = require $appPath . '/config/main.php';

$application = new \yii\web\Application($config);
$application->run();
